import request from '@/utils/request'

// 节水产品申报审核与管理信息-列表
const saveWaterProductList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterProd/getWaterProductList',
    method: 'post',
    data: params
  })
}

// 详情
const saveWaterProductDetails = function (id) {
  return request({
    url: '/zy-api/api/waterProd/getWaterProductId',
    method: 'post',
    data: { id }
  })
}

// 新增
const addSaveWaterProduct = function (params = {}) {
  return request({
    url: '/zy-api/api/waterProd/addWaterProduct',
    method: 'post',
    data: params
  })
}

// 编辑
const editSaveWaterProduct = function (params = {}) {
  return request({
    url: '/zy-api/api/waterProd/updWaterProduct',
    method: 'post',
    data: params
  })
}

// 删除
const delSaveWaterProduct = function (params = {}) {
  return request({
    url: '/zy-api/api/waterProd/delWaterProduct',
    method: 'post',
    data: params
  })
}

// 发布
const releaseSaveWaterProduct = function (params = {}) {
  return request({
    url: '/zy-api/api/waterProd/addWaterRelease',
    method: 'post',
    data: params
  })
}

export {
  saveWaterProductList,
  saveWaterProductDetails,
  addSaveWaterProduct,
  editSaveWaterProduct,
  delSaveWaterProduct,
  releaseSaveWaterProduct
}